
package guoan.repository;

import guoan.domain.Train;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TrainRepository extends PagingAndSortingRepository<Train, Long>, JpaSpecificationExecutor<Train> {

    Train findByOpenid(String openid);

    Train findByTrainNameAndTrainTelAndPasswordAndTrainNo(String checkNotNull, String checkNotNull2, String checkNotNull3, String checkNotNull4);

}
